Some websites are maliciously placed with UDP packet sending tools to attack others, leading to heavy traffic loss. Generally, only the DNS server uses udp protocol, while others can disable UDP packet forwarding.Therefore, a script is written to only allow Outbound UDP packets from the target DNS server. All other
Before the introduction of Linux through the iptables limit UDP contract, this record of Windows 2003 implementation methods.
Create a new Bat script, add the following, and then click Run.
Copy Code code as follows:
: Created by Http://www.jb51.net
:D ROP UDP Flood
@echo off
Cls
: Get DNS Address
Fo
full-time network administrator who has less than one year of college graduation and has limited practical experience. I am often invited to help.
On one occasion, many customers complained that the company's website could not be opened and that they could not view the company's information. They could not see the company's success stories. This seriously affects the communication between the customer and the company, as well as the customer's trust in the company.
Diagnosed:
= 262144Net.ipv4.tcp_max_orphans = 262144Net.ipv4.tcp_keepalive_time = 30Iptables Nature Defense:Limit the request speed of SYN (this method needs to adjust a reasonable speed value, otherwise it will affect the normal user's request)Iptables-n Syn-flood (new chain)Iptables-a input-p TCP--syn-j Syn-floodIptables-a syn-flood
From: China Linux Forum
Iptables and SOCKS5From the "iptables and natcheck" article, we can see that, as long as both ends use iptables for Nat, even if both sides pass the natcheck compatibility test, iptables can never cross each other.What should we do? One way is to add a Transit server
. However, when the packet arrives at NAT (210.21.12.140: 5000), Nat will not know whether to send the packet to a (192.168.0.4: 5000) or D (192.168.0.5: 5000 ). Obviously, this packet can only be discarded. This is enough to prove that iptables has a port restriction attribute.Therefore, iptables is a genuine elastic Ric Nat.
Appendix:1. Stun stands for simple traversal of
Iptables and SOCKS5
From the article "Iptables and Natcheck", as long as at both ends of the use of iptables for NAT, even if both sides passed the Natcheck compatibility test, but the iptables on both sides can never cross each other.
How to do, one way is to add a transit server on the public network, both sides of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.